﻿package Cain 
{
	import flash.display.DisplayObject;
	import flash.events.Event;
	import flash.utils.describeType;
	import flash.utils.getQualifiedClassName;
	import flash.utils.getDefinitionByName;
	
	/**
	 * ...
	 * @author Cain@2009 in ADCAST
	 */
	public class Copy
	{
		static public function to(mc:DisplayObject):DisplayObject
		{
			var class_name:String = getQualifiedClassName(mc);
			var new_class:Class = getDefinitionByName(class_name) as Class;
			var kk:DisplayObject = new new_class();
			return kk;
		}
	}
	
}